﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xant.FlowEngine.Interface
{
    public interface IActorParser
    {
        /// <summary>
        /// 解析XML文本，返回其定义的参与者集合
        /// </summary>
        IEnumerable<IActor> FromXml(string xml);

        /// <summary>
        /// 将参与者集合格式化为XML文本
        /// </summary>
        string ToXml(IEnumerable<IActor> actors);
    }
}
